package com.zhehekeji.opsys.api.entity;

import java.util.Date;

import javax.persistence.CascadeType;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;

// Generated 2016-7-18 14:41:26 by Hibernate Tools 3.4.0.CR1

import lombok.Data;

/**
 * TZoneCollect generated by hbm2java
 */
@Data
@Entity
@Table(name="t_zone_collect")
public class TZoneCollect implements java.io.Serializable {

	/** 
	* @Fields serialVersionUID : TODO
	*/ 
	private static final long serialVersionUID = -5727786984077140759L;
	@Id
	@GeneratedValue(strategy=GenerationType.AUTO)
	@Column(name="ID",length=20,nullable=false,unique=true)
	private Long id;

	@Column(name="USER_ID",length=64,nullable=true)
	private String userId;

	@ManyToOne(cascade=CascadeType.REFRESH,fetch=FetchType.LAZY,optional=true)
	@JoinColumn(name="ZONE_ID")
	private TZone tzone;

	@Column(name="PROGRAM_CODE",length=64,nullable=true)
	private String programCode;

	@Column(name="PROGRAM_NAME",length=128,nullable=true)
	private String programName;

	@Column(name="SERIES_FLAG",length=1,nullable=true)
	private Integer seriesFlag;

	@Column(name="SERIES_CODE",length=64,nullable=true)
	private String seriesCode;

	@Temporal(TemporalType.TIMESTAMP)
	@Column(name="RECORD_TIME")
	private Date recordTime;

	@Column(name="CP_CODE",length=20,nullable=true)
	private Long cpCode;

	@Column(name = "CATEGORY_POSTER", length = 1024, nullable = true)
	private String categoryPoster;

	@Column(name = "STILL_IMG", length = 1024, nullable = true)
	private String stillImg;

	@Column(name="POSTER_URL",length=1024,nullable=true)
	private String posterUrl;
	
	public TZoneCollect() {
	}
}
